class Product < ActiveRecord::Base
  has_one :categories
  has_one :brands
  validates_presence_of :category
  validates_presence_of :brand
  
  
  CATEGORIES = Category.find(:all).collect {|type| [type.title]}
  BRANDS = Brand.find(:all).collect {|type| [type.title]}

end
